package com.yeren.singleton;

public class SingleDemo {

	/**
	 * 测试单例模式
	 */
	public static void main(String[] args) {
		Singleton s1= Singleton.getSingleton();
		Singleton s2= Singleton.getSingleton();
		Singleton s3= Singleton.getSingleton();
		System.out.println(s1==s2);
		System.out.println(s2==s3);
		System.out.println(s1==s3);
		
	}

}
